{// 引入标签库 }
<tagLib name="html" />
<include file="Public:header" />
<div class="main">
<div class="main_title">{%ADD} <a href="{:u("DealCate/index")}" class="back_list">{%BACK_LIST}</a></div>
<div class="blank5"></div>
<form name="edit" action="__APP__" method="post" enctype="multipart/form-data">
<table class="form" cellpadding=0 cellspacing=0>
	<tr>
		<td colspan=2 class="topTd"></td>
	</tr>
	<tr>
		<td class="item_title">{%TITLE_SHOW}:</td>
		<td class="item_input"><input type="text" class="textbox require" name="name" /></td>
	</tr>
	<tr style="display:none;">
		<td class="item_title">{%URL_UNAME}:</td>
		<td class="item_input"><input type="text" class="textbox word-only" name="uname" value="" /> </td>
	</tr>
	<tr>
		<td class="item_title">{%BRIEF}:</td>
		<td class="item_input"><textarea class="textarea" name="brief" ></textarea></td>
	</tr>
	<tr>
		<td class="item_title">{%RECOMMEND}:</td>
		<td class="item_input">
		<select name="recommend">
			<option value="0">{%RECOMMEND_0}</option>
			<option value="1">{%RECOMMEND_1}</option>
		</select>
		</td>
	</tr>
	
	<tr>
		<td class="item_title">{%IS_EFFECT}:</td>
		<td class="item_input">
			<lable>{%IS_EFFECT_1}<input type="radio" name="is_effect" value="1" checked="checked" /></lable>
			<lable>{%IS_EFFECT_0}<input type="radio" name="is_effect" value="0" /></lable>
		</td>
	</tr>
	<tr>
		<td class="item_title">{%DEAL_CITY}:</td>
		<td class="item_input">
			<php>$idx = 1;</php>
			<foreach name="city_list" item="city_item">
				<if condition="$city_item['pid'] neq 0">
				<label>{$city_item.name}：<input type="checkbox" name="city_id[{$city_item.id}]" value="{$city_item.id}"  checked="checked" /></label>&nbsp;
				</if>
			</foreach>
		</td>
	</tr>
	<tr>
		<td class="item_title">标签分组</td>
		<td class="item_input">
			<foreach name="tag_group" item="group" >
				<label title="{$group.memo}"><input class="action-item" type="checkbox" name="tag_group[]" value="{$group.id}" <if condition="$group['is_check']">checked="checked"</if> /><span>&nbsp;{$group.name}<if condition="$group['memo']">({$group.memo})</if></span></label>&nbsp;&nbsp;
			</foreach>&nbsp;
		</td>
	</tr>
	<tr>
		<td class="item_title">商户图片分组</td>
		<td class="item_input">
			<foreach name="images_group" item="group" >
				<label><input class="action-item" type="checkbox" name="images_group[]" value="{$group.id}" /><span>&nbsp;{$group.name}</span></label>&nbsp;&nbsp;
			</foreach>&nbsp;
		</td>
	</tr>
	<tr>
		<td class="item_title">点评评分分组</td>
		<td class="item_input">
			<foreach name="point_group" item="group" >
				<label><input class="action-item" type="checkbox" name="point_group[]" value="{$group.id}" /><span>&nbsp;{$group.name}</span></label>&nbsp;&nbsp;
			</foreach>&nbsp;
		</td>
	</tr>
	
	<tr>
		<td class="item_title">{%SORT}:</td>
		<td class="item_input"><input type="text" class="textbox" name="sort" value="{$newsort}" /></td>
	</tr>
	<tr>
		<td class="item_title"></td>
		<td class="item_input">
			<!--隐藏元素-->
			<input type="hidden" name="{:conf("VAR_MODULE")}" value="DealCate" />
			<input type="hidden" name="{:conf("VAR_ACTION")}" value="insert" />
			<!--隐藏元素-->
			<input type="submit" class="button" value="{%ADD}" />
			<input type="reset" class="button" value="{%RESET}" />
		</td>
	</tr>
	<tr>
		<td colspan=2 class="bottomTd"></td>
	</tr>
</table>	 
</form>
</div>
<include file="Public:footer" />